package com.zhang.publisher.service.impl;

import com.zhang.publisher.bean.KeywordStats;

import com.zhang.publisher.mapper.KeyWordStatsMapper;
import com.zhang.publisher.service.KeywordStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @title:
 * @author: zhang
 * @date: 2022/3/18 19:24
 */
@Service
public class KeywordStatsServiceImpl implements KeywordStatsService {
    @Autowired
    private KeyWordStatsMapper keyWordStatsMapper;


    @Override
    public List<KeywordStats> getKeyword(Integer date, Integer limit) {
        return keyWordStatsMapper.selectKeywordStats(date,limit);
    }
}
